package com.hongtong.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author hongtong
 * @since 2022-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TeQa对象", description="")
public class TeQa implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "问答id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "问题")
    private String problem;

    @ApiModelProperty(value = "老师对此问题的回答")
    private String answer;

    @ApiModelProperty(value = "课程id")
    private Integer curId;

    @ApiModelProperty(value = "学生id")
    private Integer userId;

    @TableField(exist = false)
    private TeUser teUser;

    @TableField(exist = false)
    private TeCur teCur;


}
